﻿<Window x:Class="Booki.WPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="500" Width="800">
    <Grid>
        <Grid.Resources>
            <Style TargetType="Button">
                <Setter Property="Margin" Value="10"/>
                <Setter Property="Padding" Value="5"/>
            </Style>
            <Style TargetType="TextBox">
                <Setter Property="Margin" Value="10"/>
            </Style>
        </Grid.Resources>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <TabControl>
            <TabItem Header="Files">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <Button HorizontalAlignment="Left" Margin="10" Padding="10" Click="Button_Click">
                        Open File
                    </Button>
                    <TextBox x:Name="txtPanel" MinHeight="150"
                             Grid.Row="1" Margin="10" AcceptsReturn="True" AcceptsTab="True"/>
                    <Button HorizontalAlignment="Right" Margin="10" Padding="10" Grid.Row="2" Click="Button_Click_1">
                        Save File
                    </Button>
                </Grid>
            </TabItem>
            <TabItem Header="Compression">
                <Grid Background="#FFE5E5E5">
                    <Button HorizontalAlignment="Left" Click="Button_Click_2">Zip Files</Button>
                    <Button HorizontalAlignment="Right" Click="Button_Click_3">UnZip Files</Button>
                </Grid>
            </TabItem>
            <TabItem Header="Cryptography">
                <Grid Background="#FFE5E5E5" MinHeight="250">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>

                        <RowDefinition Height="50"/>
                        <RowDefinition/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>
                    <Button HorizontalAlignment="Left" Height="30" Margin="10,0,0,10" VerticalAlignment="Bottom" Click="Button_Click_4">Encrypt using TripleDES</Button>
                    <Button HorizontalAlignment="Right" Click="Button_Click_5">Decrypt using TripleDES</Button>
                    <TextBox Grid.Row="1" x:Name="txtSource1"/>
                    <TextBox Grid.Row="2" x:Name="txtTarget1" IsReadOnly="True" Background="#FFF5F2F2"/>


                    <Button Grid.Column="1" HorizontalAlignment="Left" Click="Button_Click_6">Encrypt using AESRijndael</Button>
                    <Button Grid.Column="1" HorizontalAlignment="Right" Click="Button_Click_7">Decrypt using AESRijndael</Button>
                    <TextBox Grid.Row="1" x:Name="txtSource2" Grid.Column="1"/>
                    <TextBox Grid.Row="2" x:Name="txtTarget2" Grid.Column="1" IsReadOnly="True" Background="#FFF5F2F2"/>



                </Grid>
            </TabItem>

        </TabControl>
        <TextBox x:Name="txtConsola" Grid.Row="1" Margin="10" Background="#FF2C2828" Foreground="White" FontFamily="Consolas"/>
    </Grid>
</Window>
